<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:pe="http://primefaces.org/ui/extensions">
	<h:outputStylesheet library="css" name="calculators.css" />
	<h:panelGroup class="calculatorspanel" id="calculatorspanel"
		layout="block">
		<ui:include src="#{calculatorsBean.calculator}" />
	</h:panelGroup>

	<h:form>
		<p:stack icon="/resources/images/calculators/stack.png">
			<p:menuitem value="bmi" icon="/resources/images/calculators/bmi.png" 
				update=":calculatorspanel">
				<f:setPropertyActionListener target="#{calculatorsBean.calculator}"
					value="bmi.xhtml" />
			</p:menuitem>
			<p:menuitem value="bmr" icon="/resources/images/calculators/bmr.png"
				update=":calculatorspanel">
				<f:setPropertyActionListener target="#{calculatorsBean.calculator}"
					value="bmr.xhtml" />
			</p:menuitem>
		</p:stack>
	</h:form>
</ui:composition>